package org.example.score.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName pd_dlzszyqk
 */
@TableName(value ="pd_dlzszyqk")
@Data
public class Dlzszyqk implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 年份
     */

    private String year;

    /**
     * 学校代码
     */
    private String code;

    /**
     * 校内专业代码
     */
    private String xnzydm;

    /**
     * 学校名称
     */
    private String name;

    /**
     * 校内专业名称
     */
    private String xnzymc;

    /**
     * 专业名称
     */
    private String zymc;

    /**
     * 专业代码
     */
    private String zydm;

    /**
     * 所属单位名称
     */
    private String ssdwmc;

    /**
     * 所属单位号
     */
    private String ssdwh;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dlzszyqk other = (Dlzszyqk) that;
        return (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getXnzydm() == null ? other.getXnzydm() == null : this.getXnzydm().equals(other.getXnzydm()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getXnzymc() == null ? other.getXnzymc() == null : this.getXnzymc().equals(other.getXnzymc()))
            && (this.getZymc() == null ? other.getZymc() == null : this.getZymc().equals(other.getZymc()))
            && (this.getZydm() == null ? other.getZydm() == null : this.getZydm().equals(other.getZydm()))
            && (this.getSsdwmc() == null ? other.getSsdwmc() == null : this.getSsdwmc().equals(other.getSsdwmc()))
            && (this.getSsdwh() == null ? other.getSsdwh() == null : this.getSsdwh().equals(other.getSsdwh()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getXnzydm() == null) ? 0 : getXnzydm().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getXnzymc() == null) ? 0 : getXnzymc().hashCode());
        result = prime * result + ((getZymc() == null) ? 0 : getZymc().hashCode());
        result = prime * result + ((getZydm() == null) ? 0 : getZydm().hashCode());
        result = prime * result + ((getSsdwmc() == null) ? 0 : getSsdwmc().hashCode());
        result = prime * result + ((getSsdwh() == null) ? 0 : getSsdwh().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", year=").append(year);
        sb.append(", code=").append(code);
        sb.append(", xnzydm=").append(xnzydm);
        sb.append(", name=").append(name);
        sb.append(", xnzymc=").append(xnzymc);
        sb.append(", zymc=").append(zymc);
        sb.append(", zydm=").append(zydm);
        sb.append(", ssdwmc=").append(ssdwmc);
        sb.append(", ssdwh=").append(ssdwh);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}